package ProjectTeam39.Domains;
import java.util.ArrayList;
/**
 * 
 * @author SethEDubin
 *
 */
public class MedicalInfo {

	ArrayList<TreatmentRecord> History;
	String pharmacy, insurance, alergies;
	
	/**
	 * 
	 * @param pharmacy
	 * @param insurance
	 * @param alergies
	 */
	public MedicalInfo(String pharmacy, String insurance, String alergies)
	{
		History = new ArrayList<TreatmentRecord>();
		this.pharmacy = pharmacy;
		this.insurance = insurance;
		this.alergies = alergies;
	}
	/**
	 * 
	 * @param tr
	 */
	public void addTreatment(TreatmentRecord tr)
	{
		History.add(tr);
	}
	
	public TreatmentRecord getTreatmentRecord(TreatmentRecord tr)
	{
		return tr; 
	}
	
	public void deleteTreatmentRecord(TreatmentRecord tr)
	{
		History.remove(History.indexOf(tr));
	}
	
	
	public String getPharm()
	{
		return pharmacy; 
	}
	
	public String getInsurance()
	{
		return insurance; 
	}
	
	public String getAlergies()
	{
		return alergies; 
	}
}
